
import { request } from "@/utils/http"

// 获取文章详情信息
const getArticleComment = (params) => {
    return request({
        url:'/user/comment',
        method:'GET',
        params
    })
}

const addArticleComment = (data)=>{
    return request({
        url:'/api/comment',
        method:'POST',
        data
    })
}
// 获取文章详情信息
const getCommentById = (id) => {
    return request({
        url:`/api/comment/${id}`,
        method:'GET',
    })
}

export {
    getArticleComment,addArticleComment,getCommentById
}